﻿@{
    ViewBag.Title = "Ad Page";
}

<div class="jumbotron">
    <h1>ASP.NET</h1>
   
</div>

<div id="bodyContainer" ng-app="AdApp">
    <section id="content">
        <div class="container-fluid">
            <div class="row">
                <div ng-controller="AdCtrl">
                    <div class="col-md-12">{{name}}</div>
                    <div class="row">
                        <select class="col-md-4"
                                ng-model="currentGroup"
                                ng-class="form-group"
                                ng-options="value.id as value.name for value in groups"
                                ng-change="selectAction()">
                            <option>--</option>
                        </select>



                        <select class="multiselect col-md-8" data-placeholder="Select Products"
                                ng-model="productSelection" ng-options="item as item.name for item in users"
                                ng-class="form-group"
                                multiple="multiple" ng- multiselect-dropdown></select>
                        </div>
                    <div class ="row">
                        <p>Selection: {{productSelection}}</p>
                    <div class="row text-center">
                        <button class="btn btn-info btn-lg " ng-click="sendAnswer()" ng-disabled="working">{{name}}</button>
                    </div>
                    </div>
                    </div>
            </div>
        </div>
    </section>
</div>

@section scripts {
    @Scripts.Render("~/Scripts/angular.js")
    @Scripts.Render("~/Scripts/angular-resource.js") 
    
    @Scripts.Render("~/Scripts/app/remote-service.js")

    @Scripts.Render("~/Scripts/app/ad-controller.js")
@Scripts.Render("~/Scripts/app/app.js")
    
   
   
}